var vm = new Vue({
    el:"#box",
    data:{
        text:"",//保存输入框输入的内容(临时)
        searchArr:["小龙虾","火锅","自助烧烤","黄焖鸡米饭"],
        findArr:["日式餐厅","韩式快餐","佛跳墙","酸菜鱼"]
    },
    methods:{
        search(){
            if(this.text!=""){
                this.searchArr.push(this.text);
                this.text=""
            }
        },
        del(index){
            this.searchArr.splice(0,this.searchArr.length);
        }
    }
}) 